﻿using System;

namespace JuCheap.Core.Data.Entity
{
    public class Worker : Entity<int>
    {
        public int CompanyId { get; set; }
        public Company Company { get; set; }
        public int JobPositionId { get; set; }
        public JobPosition JobPosition { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 第三方id
        /// </summary>
        public string ExtenralId { get; set; }

        /// <summary>
        /// 识别头像
        /// </summary>
        public string IdentificationHeadImageUrl { get; set; }

        /// <summary>
        /// 个性头像
        /// </summary>
        public string UserHeadImageUrl { get; set; }

        public string PhoneNumber { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }


        public DateTime Birthday { get; set; }

        public string Email { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        public CardType  CardType { get; set; }
        public string CardNumber { get; set; }

        /// <summary>
        /// 个性签名
        /// </summary>
        public string Remark { get; set; }
        public Gender Gender { get; set; }

        public int RemoteId { get; set; }
        public int Status { get; set; }
    }

    public enum Gender
    {
        Female, Male
    }

    public enum CardType
    {
        IdCard, DriverLicense, Passport
    }
}